Skip to content

RGB order override for DPI - #6156

Merged
pelwell merged 2 commits into
raspberrypi:rpi-6.6.yfrom
6by9:rpi-6.6.y-dpi
May 17, 2024
Merged

pelwell merged 2 commits into
raspberrypi:rpi-6.6.yfrom
6by9:rpi-6.6.y-dpi

Conversation

@6by9

@6by9 6by9 commented May 10, 2024

Copy link
Copy Markdown
Contributor

Quick (untested) mod for #6155

It's either this or adding a load of extra MEDIA_BUS_FMTs.

@njhollinghurst

Copy link
Copy Markdown
Contributor

Will we be wanting this on RP1 as well? (BTW the latter can also generate several other pinouts that would leave a gap for I2S, but I expect VC4 can't match those. I mention it in case it helps forward planning...)

Comment thread drivers/gpu/drm/vc4/vc4_dpi.c Resolved
@6by9

6by9 commented May 10, 2024

Copy link
Copy Markdown
Contributor Author

Will we be wanting this on RP1 as well? (BTW the latter can also generate several other pinouts that would leave a gap for I2S, but I expect VC4 can't match those. I mention it in case it helps forward planning...)

Yes we'll probably want something similar on RP1.
The dpi DT node should be remapped to the RP1 peripheral on Pi5 so the property would exist with the overlay change, but the driver would obviously need to look for it. Handling the values in a generic manner might want a little more thought.

Comment thread arch/arm/boot/dts/overlays/README Resolved
@6by9
6by9 force-pushed the rpi-6.6.y-dpi branch 2 times, most recently from 13ceec3 to 1d54d5e Compare May 14, 2024 14:05
@6by9

6by9 commented May 14, 2024

Copy link
Copy Markdown
Contributor Author

Updated and now takes a string for the RGB order so that all orders can be handled in the RP1 driver.

I think this handles the use case fairly cleanly, so dropping the draft status.
(I know I should have updated the DT bindings too, but I doubt this will ever be acceptable to upstream anyway)

@6by9
6by9 marked this pull request as ready for review May 14, 2024 14:08
Comment thread drivers/gpu/drm/vc4/vc4_dpi.c Resolved
6by9 added 2 commits May 17, 2024 18:18
There are no MEDIA_BUS_FMT_* defines for GRB or BRG, and adding
them is a pain.

Add a DT override to allow setting the order.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Sets the new DT property for rgb-order.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
@6by9
6by9 force-pushed the rpi-6.6.y-dpi branch from 1d54d5e to cb57610 Compare May 17, 2024 17:19
@pelwell
pelwell merged commit 0c14736 into raspberrypi:rpi-6.6.y May 17, 2024
popcornmix added a commit to raspberrypi/firmware that referenced this pull request May 20, 2024
kernel: RGB order override for DPI
See: raspberrypi/linux#6156

kernel: Minor panel fixups
See: raspberrypi/linux#6176

kernel: dtoverlays: Fix noints mode of mcp23017
See: raspberrypi/linux#6174

kernel: DTS: bcm2712: set nonzero QoS values for PCIE1
See: raspberrypi/linux#6171

kernel: staging: bcm2835_codec: Pass framerate to the component if set late
See: raspberrypi/linux#6108

kernel: spi: dw: Handle any number of gpiod CS lines
See: raspberrypi/linux#6161
popcornmix added a commit to raspberrypi/rpi-firmware that referenced this pull request May 20, 2024
kernel: RGB order override for DPI
See: raspberrypi/linux#6156

kernel: Minor panel fixups
See: raspberrypi/linux#6176

kernel: dtoverlays: Fix noints mode of mcp23017
See: raspberrypi/linux#6174

kernel: DTS: bcm2712: set nonzero QoS values for PCIE1
See: raspberrypi/linux#6171

kernel: staging: bcm2835_codec: Pass framerate to the component if set late
See: raspberrypi/linux#6108

kernel: spi: dw: Handle any number of gpiod CS lines
See: raspberrypi/linux#6161
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants